<template>
	<view class="container">
		<view class="completeImage">
			<image src="/static/complete.png"></image>
		</view>
		<view class="status">
			<text>支付成功</text>
		</view>
		<view class="amount">
			<text>￥998.00</text>
		</view>
		<view class="orderNumber">
			<text>预约编号: 324252536363634</text>
		</view>
		<view class="buttons">
			<button @click="goHome">返回首页</button>
			<button @click="viewDetails">订单详情</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goHome() {
				// 跳转到首页
				uni.switchTab({
					url: '/pages/index/index'
				});
			},
			viewDetails() {
				// 跳转到订单详情页
				uni.navigateTo({
					url: '/pages/carWash/orderIntro/orderIntro'
				});
			}
		}
	}
</script>

<style>
	.container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background-color: #f8f8f8;
		padding-top: 200rpx;
	}

	.completeImage {
		margin-bottom: 40rpx;
	}
	.completeImage image{
		width: 132rpx;
		height: 132rpx;
	}

	.status {
		width: 160rpx;
		height: 58rpx;
		font-size: 40rpx;
		font-weight: bold;
		margin-bottom: 20rpx;
		text-align: center;
		margin-bottom: 40rpx;
	}

	.amount {
		width: 242rpx;
		height: 108rpx;
		font-size: 74rpx;
		color: #101010;
		text-align: center;
	}

	.orderNumber {
		margin-bottom: 80rpx;
		font-size: 32rpx;
		color: #101010;
		width: 430rpx;
		height: 40rpx;
		text-align: center;
	}

	.buttons button {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 20rpx;
		padding: 20rpx 40rpx;
		background-color: #1D6FFF;
		color: white;
		border-radius: 10rpx;
		font-size: 32rpx;
		width: 484rpx;
		height: 80rpx;
		margin-bottom: 40rpx;
	}

	.buttons button:nth-child(2) {
		background-color: #CECECE;
	}
</style>